﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LostList.aspx.cs" Inherits="CRM.Web.OutboundManage.LostList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>

</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
        <table border="0" cellpadding="0" cellspacing="0" id="tTitle">
            <tr>
                <td class="left">
                    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
                </td>
                <td class="middle">
                    <div class="pagetitle">
                        <div>
                            <asp:Label ID="lblTitle" runat="server" Text="呼损电话列表"></asp:Label></div>
                    </div>
                </td>
                <td class="right">
                    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
                </td>
            </tr>
        </table>
    <div id="divMain">
        <div style="width: 100%">
            <div class="listdiv">
                <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                主叫号码:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtANI" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                被分配人名:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtASSIGNEDPERSONNAME" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                分配时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtALLOCATEDTIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtALLOCATEDTIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                完成时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCallBackCompleteTimeBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtCallBackCompleteTimeEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            <div class="nowrap">
                                状态:</div>
                        </td>
                        <td class="content">
                            <asp:DropDownList runat="server" ID="ddlSTATUS" CssClass="ddl">
                            </asp:DropDownList>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                被过滤:</div>
                        </td>
                        <td class="content">
                            <asp:DropDownList runat="server" ID="ddlISFILTEROUT" CssClass="ddl">
                            </asp:DropDownList>
                        </td>
                        <td class="title">
                            <div class="nowrap">
                                记录时间:</div>
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtRECORDTIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                                ID="txtRECORDTIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                        </td>
                        <td class="title">
                        </td>
                        <td class="content">
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            完成时间:
                        </td>
                        <td class="content">
                            <asp:TextBox ID="txtCompleteLength" runat="server" CssClass="txt" onkeyup="isPositiveInteger(this);"
                                onbeforepaste="isClipboardPositiveInteger();"></asp:TextBox>(小时)
                        </td>
                        <td class="title">
                        </td>
                        <td class="content">
                        </td>
                        <td class="title">
                        </td>
                        <td class="content">
                        </td>
                        <td class="title">
                        </td>
                        <td class="content">
                            <div style="width: 200px;" class="nowrap">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                    OnClick="btnSearch_Click" />
                                <asp:Button ID="btnFilter" runat="server" Text="过 滤" CommandName="Filter" CssClass="btn title_cx"
                                    OnClick="btnFilter_Click" /></div>
                        </td>
                    </tr>
                </table>
                <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"
                    OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting"
                    AllowPaging="True" AllowSorting="True" SortExpressionValue="ID"
                    SortDirectionValue="DESC">
                    <Columns>
                        <asp:TemplateField HeaderText="记录编号" SortExpression="ID" Visible="False">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlModifyID" runat="server" NavigateUrl='<%# Eval("ID", ModifyUrl) %>' Text='<%# Bind("ID") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="记录时间" SortExpression="RECORDTIME">
                            <ItemTemplate>
                                    <asp:HyperLink ID="hlModifyRECORDTIME" runat="server" NavigateUrl='<%# Eval("ID", ModifyUrl) %>'  Text='<%# Bind("RECORDTIME", "{0:yyyy-MM-dd HH:mm:ss}") %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="DNIS" HeaderText="被叫号码" SortExpression="DNIS" />
                        <asp:BoundField DataField="ANI" HeaderText="主叫号码" SortExpression="ANI" />
                        <asp:BoundField DataField="ASSIGNEDPERSONID" HeaderText="被分配人编号" SortExpression="ASSIGNEDPERSONID"
                            Visible="false" />
                        <asp:BoundField DataField="ASSIGNEDPERSONNAME" HeaderText="被分配人名" SortExpression="ASSIGNEDPERSONNAME" />
                        <asp:BoundField DataField="DISTRIBUTIONPEOPLEID" HeaderText="分配人编号" SortExpression="DISTRIBUTIONPEOPLEID"
                            Visible="false" />
                        <asp:BoundField DataField="DISTRIBUTIONPEOPLENAME" HeaderText="分配人名" SortExpression="DISTRIBUTIONPEOPLENAME" />
                        <asp:BoundField DataField="ALLOCATEDTIME" HeaderText="分配时间" SortExpression="ALLOCATEDTIME"
                            DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                        <asp:BoundField DataField="LIMITED" HeaderText="时限" SortExpression="LIMITED" Visible="false" />
                        <asp:BoundField DataField="CASEID" HeaderText="工单编号" SortExpression="CASEID" Visible="false" />
                        <asp:BoundField DataField="CALLTYPE" HeaderText="来电类型" SortExpression="CALLTYPE"
                            Visible="false" />
                        <asp:BoundField DataField="STATUS" HeaderText="状态" SortExpression="STATUS" />
                        <asp:BoundField DataField="REMARK" HeaderText="备注" SortExpression="REMARK" Visible="false" />
                        <asp:BoundField DataField="ISFILTEROUT" HeaderText="被过虑" SortExpression="ISFILTEROUT" />
                        <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号" SortExpression="BUSINESSDIVISIONID"
                            Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称" SortExpression="BUSINESSDIVISIONNAME"
                            Visible="false" />
                        <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码" SortExpression="BUSINESSDIVISIONCODE"
                            Visible="false" />
                        <asp:TemplateField HeaderText="操作" ShowHeader="False">
                            <ItemTemplate>
                                <div style="white-space: nowrap;">
                                    <asp:HyperLink ID="hlModify" runat="server" NavigateUrl='<%# Eval("ID", ModifyUrl) %>'>详细</asp:HyperLink>
                                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False"
                                        OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="row2" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                </dp:WebGridView>
            </div>
        </div>
        <div style="color: Red; margin-top: 5px; margin-left: 20px;">
            过滤操作，只判读记录时间，并且记录开始时间及结止时间不能为空！</div>
    </div>
    </form>
</body>
</html>
